package com.mccken.designpattern.create_type.singleton;

/**
 * @program: mccken-collect
 * @description:
 * @author: mccken
 * @create: 2024-03-11 12:15
 **/
public class IdGenerator3 {
	private IdGenerator3() {}
	private static class SingletonHolder{
		private static final IdGenerator3 instatnce = new IdGenerator3();
	}
	
	public static IdGenerator3 getInstance() {
		return SingletonHolder.instatnce;
	}
}
